home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 21 / Cream of the Crop 21 (Terry Blount) (October 1996).iso / editor / auror300.zip / TRAN.AML < prev    next >
Text File  |  1996-07-17  |  3KB  |  78 lines

  1. //--------------------------------------------------------------------
  2. // The Aurora Editor v3.0, Copyright (C) 1993-1996 nuText Systems
  3. //
  4. // TRAN.AML
  5. // Translation definitions (loaded on-demand by Ext.aml)
  6. //
  7. // Notes:
  8. //
  9. // The text translations and macros listed here are only examples -
  10. // you can replace them with your own.
  11. //
  12. // To change a translation definition, simply locate the desired word
  13. // and it's substitution text and change them in the table. You can also
  14. // add new entries to the table. Be sure to enclose both the word and
  15. // the substitution text in quotes.
  16. //
  17. // If you have made any changes, save this file and compile it
  18. // with <shift f10>
  19. //--------------------------------------------------------------------
  20.  
  21. include bootpath "define.aml"
  22.  
  23. // When translation is On, words in the left column are replaced
  24. // with the phrases in right column as-you-type. To turn translation
  25. // On and Off, select Translate from the Set menu.
  26.  
  27. // Words defined with a '*' suffix are translated only when a word
  28. // delimiter character is entered. The rest are translated when the
  29. // last character of the word is entered.
  30.  
  31. //   Word:             Replace with:
  32. //   ----              ------------
  33. set "adn"              "and"
  34. set "asap"             "as soon as possible"
  35. set "aurora"           "The Aurora Editor"
  36. set "btw"              "by the way,"
  37. set "don;t"            "don't"
  38. set "etc"              "et cetera"
  39. set "i*"               "I"
  40. set "imho"             "In my humble opinion,"
  41. set "incl"             "include"
  42. set "occurence"        "occurrence"
  43. set "recieve"          "receive"
  44. set "teh"              "the"
  45. set "yn"               "your name"
  46.  
  47.  
  48. // Macro Translations ------------------------------------------------
  49.  
  50. // If translation is On, these macros are executed when you type the
  51. // macro name as a word in your text. Note that macro functions
  52. // defined in this object cannot call each other - this object is for
  53. // lookup only.
  54.  
  55. // type the word 'bip' and a space to beep the PC speaker
  56. function "bip*"
  57.   beep 800 100
  58. end
  59.  
  60. // type the word 'dt' to enter the date and time at the cursor
  61. function dt
  62.   prevword         // find the left word ('dt')
  63.   delword          // delete the word 'dt' just entered
  64.   timestamp        // enter the date/time stamp
  65. end
  66.  
  67. // type the word 'txx' on a blank line to replace the current line
  68. // with text from a file (replace c:\your.txt with the name of
  69. // your text file).
  70.  
  71. function txx
  72.   // insert the file after the cursor
  73.   if open "c:\\your.txt" 'i' then
  74.     // delete current line if successful
  75.     delline
  76.   end
  77. end
  78.